Skip to content

Replacing mocks with fakeclient and httptest#916

Merged
burmanm merged 5 commits intok8ssandra:masterfrom
burmanm:removing_mocks
Apr 15, 2026
Merged

Replacing mocks with fakeclient and httptest#916
burmanm merged 5 commits intok8ssandra:masterfrom
burmanm:removing_mocks

Conversation

@burmanm
Copy link
Copy Markdown
Contributor

@burmanm burmanm commented Apr 13, 2026

What this PR does:
Removes mocks for Kubernetes Client and HttpClient. Replaces them with client-go's fakeclient and httptest. This allows to upgrade to go 1.26 since most of the mocks don't work with testify anymore (or forks of testify).

Which issue(s) this PR fixes:
Fixes #

Checklist

  • Changes manually tested
  • Automated Tests added/updated
  • Documentation added/updated
  • CHANGELOG.md updated (not required for documentation PRs)
  • CLA Signed: DataStax CLA

@burmanm burmanm requested a review from a team as a code owner April 13, 2026 17:47
@github-actions
Copy link
Copy Markdown

No linked issues found. Please add the corresponding issues in the pull request description.
Use GitHub automation to close the issue when a PR is merged

Comment thread pkg/httphelper/client_test.go
@burmanm burmanm merged commit 972116f into k8ssandra:master Apr 15, 2026
81 of 83 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants